package net.lanelife.casino.caipiao.validation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.ReportAsSingleViolation;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Documented
@Constraint(validatedBy = RebatePointValidator.class)
@Target({ ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@NotNull
@Min(0)
@ReportAsSingleViolation
public @interface RebatePoint {
	
	String message() default "{net.lanelife.casino.caipiao.validator.constraints.RebatePoint.message}";

	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };

}
